package message;

import enums.MessageTypeEnum;
import lombok.NonNull;

/**
 * @author wb_zhulinzhong
 * @date 2021-04-14 17:16:59
 */
public class BinaryMessage extends Message{

    public BinaryMessage(){
        super();
    }

    public BinaryMessage(@NonNull byte[] bytes){
        super(null, null, bytes);
    }
    public BinaryMessage(String uId, @NonNull byte[] bytes){
        super(uId, null, bytes);
    }

    public BinaryMessage(String uId, String toUId, @NonNull byte[] bytes){
        super(uId, toUId, bytes);
    }

    @Override
    protected void setMediaType() {
        type = MessageTypeEnum.BINARY.getCode();
    }

}
